package pack1021.exception;

public class DemoG {
    private static void a(int len) throws DemoF {
        if (len < 7) {
            System.out.println("抛出一个自定义的异常");
            throw new DemoF();
        }
    }

    public static void main(String[] args) {
        try {
            a(4);
        } catch (DemoF e) {
            System.out.println("处理了！");
        }
    }
}
